<!--
 @description 运单信息
 @fileName LogisticsList.vue
 @author zengqiongying
 @created 2021/07/13 16:24:49
-->
<template>
  <div>
    <table-box
      ref="refTable"
      :data="tableData"
      :table-config="tableConfig"
      :other-filters="otherFilters"
      :table-max-height="600"
      :table-sortable="false"
      show-index
    />
  </div>
</template>

<script>
import tabMixin from './mixin'
export default {
  name: 'OrderLogisticsList',
  mixins: [tabMixin],
  data() {
    return {
      tableData: [],
      otherFilters: [], // 表格额外查询条件
      otherRaws: {},
      tableConfig: {
        // interfacePath: `${process.env.VUE_APP_BASE_API}/api/v1/orderSkuLogistics/page`,
        interfacePath: '',
        hideSearchBar: true,
        hideFuncBar: true,
        tabIndex: 23,
        buttonGroupCode: 'detail_logistics',
        pageSize: 50,
        // sort: 'soTime', // 开单时间
        // order: 'desc',
        setting: [
          {
            prop: 'waybillNo',
            label: '物流单号',
            minWidth: 150
          },
          {
            prop: 'logisticsCode',
            label: '物流公司编码',
            minWidth: 150
          },
          {
            prop: 'logisticsName',
            label: '物流公司名称',
            minWidth: 200
          }
        ],
        btnList: []
      }
    }
  },
  computed: {

  },
  created() {
    /* this.otherFilters = [
      { id: 'orderId', property: 'orderId', operator: '=', value: this.orderId }
    ] */
  },
  methods: {
    initData() {
      this.tableData = (this.orderData && this.orderData.skuLogisticsList) || []
      /* this.otherFilters = [
        { id: 'orderId', property: 'orderId', operator: '=', value: this.orderId }
      ]
      this.$nextTick(() => {
        this.$refs.refTable.initTableData()
      }) */
    }
  }
}

</script>
<style lang='scss' scoped>
</style>
